/**
 * addAdmin
 */
function doAddAdmin() {
	var err = '';
	var username = document.getElementById('username').value;
	var password = document.getElementById('password').value;
	var confirming = document.getElementById('confirming').value;
	
	if(username == '') {
		err += '请输入用户名 \n';
	}
	if('' != password && password != confirming) {
		err += '两次密码不一致 \n';
	}
	
	if(err != '') {
		alert(err);
	} else {
		window.f1.submit();
	}
}
